
package ch.hearc.coursJava.moo.heritage.entrainement;



public abstract class Formes
	{

	/*------------------------------------------------------------------*\
	|*							Constructeurs							*|
	\*------------------------------------------------------------------*/

	public Formes(String nom)
		{
		this.nom = nom;
		}

	public Formes(Formes source)
		{
		this(source.nom);
		}

	/*------------------------------------------------------------------*\
	|*							Methodes Public							*|
	\*------------------------------------------------------------------*/
	public abstract double aire();
	public abstract double perimetre();
	public abstract Formes cloneOf();

	public String getNom()
		{
		return this.nom;
		}

	@Override
	public String toString()
		{
		StringBuilder builder = new StringBuilder();
		builder.append("Formes [nom=");
		builder.append(this.nom);
		builder.append(" Aire= "+this.aire());
		builder.append(" Perimetre= "+this.perimetre());
		builder.append("]");

		return builder.toString();
		}
	/*------------------------------*\
	|*				Set				*|
	\*------------------------------*/

	/*------------------------------*\
	|*				Get				*|
	\*------------------------------*/

	/*------------------------------------------------------------------*\
	|*							Methodes Private						*|
	\*------------------------------------------------------------------*/

	/*------------------------------------------------------------------*\
	|*							Attributs Private						*|
	\*------------------------------------------------------------------*/

	//input
	private String nom;

	}

